package edu.jd.movieplatform.search.movie;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Movie {


    private Integer mov_id;
    private String mov_name;
    private String mov_desc;
    private Float mov_score;
    private String mov_img_path;
    private String mov_label;
    private Integer mov_time;
    private Date mov_date;


    public Integer getMov_id() {
        return mov_id;
    }

    public void setMov_id(Integer mov_id) {
        this.mov_id = mov_id;
    }

    public String getMov_name() {
        return mov_name;
    }

    public void setMov_name(String mov_name) {
        this.mov_name = mov_name;
    }

    public String getMov_desc() {
        return mov_desc;
    }

    public void setMov_desc(String mov_desc) {
        this.mov_desc = mov_desc;
    }

    public Float getMov_score() {
        return mov_score;
    }

    public void setMov_score(Float mov_score) {
        this.mov_score = mov_score;
    }

    public String getMov_img_path() {
        return mov_img_path;
    }

    public void setMov_img_path(String mov_img_path) {
        this.mov_img_path = mov_img_path;
    }

    public String getMov_label() {
        return mov_label;
    }

    public void setMov_label(String mov_label) {
        this.mov_label = mov_label;
    }

    public Integer getMov_time() {
        return mov_time;
    }

    public void setMov_time(Integer mov_time) {
        this.mov_time = mov_time;
    }

    @DateTimeFormat( pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd")
    public Date getMov_date() {
        return mov_date;
    }

    @DateTimeFormat( pattern = "yyyy-MM-dd" )
    @JsonFormat(pattern = "yyyy-MM-dd")
    public void setMov_date(Date mov_date) {
        this.mov_date = mov_date;
    }
}
